package com.jy.adscm.dealer.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-01-16
 */
public class DealerInfo  {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 经销商Id
     */
    private Integer did;
    /**
     * 创建者
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 修改内容
     */
    private String content;
    /**
     * 创建时间
     */
    private Date time;

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getTime() {
        return time;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "DealerInfo{" +
        "id=" + id +
        ", did=" + did +
        ", creator=" + creator +
        ", content=" + content +
        ", time=" + time +
        "}";
    }
}
